
import React from 'react';

export default function Dept(props:any) {

  const crud = props.location.state.crud;
  console.log("crud",crud);
  

  return (
    <div>
        <h1>部门管理</h1>
        {crud.charAt(0)==="1"?<input type="button" value="添加"/>:""}
        {crud.charAt(1)==="1"?<input type="button" value="查询"/>:""}
        {crud.charAt(2)==="1"?<input type="button" value="修改"/>:""}
        {crud.charAt(3)==="1"?<input type="button" value="删除"/>:""}
    </div>
  )
}
